#include "rocerror.h"
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <linux/limits.h>

int main(int argc, char *argv[]) {
	    char filename[PATH_MAX] = {0};

	        if (argc != 2) {
			        app_error("You must supply a filename as an argument");
				    }

		    strncpy(filename, argv[1], sizeof(filename) - 1);
		        filename[sizeof(filename) - 1] = '\0';

			    if (creat(filename, 00644) == -1) {
				            unix_error("Can't create file");
					        }

			        return 0;
}
